package com.mihuo.controller;

import com.mihuo.entity.annotation.Anonymous;
import com.mihuo.entity.common.R;
import com.mihuo.service.ISysConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Api(tags = "通用配置")
@RestController
@RequestMapping("/common")
public class CommonController {

    @Resource
    private ISysConfigService sysConfigService;

    @Anonymous
    @ApiOperation("获取app配置")
    @GetMapping("/getAppConfigs")
    public R<Map<String,String>> getAppConfigs() {
        return R.success(sysConfigService.getAppConfigs());
    }


}
